package model;
public class Book {
    private String isbn;
    private String name;
    private String author;
    private boolean isBorrowed;
    public Book(String isbn, String name, String author) {
        this.isbn = isbn;
        this.name = name;
        this.author = author;
        this.isBorrowed = false;
    }
    public String getIsbn() {
        return isbn;
    }
    public boolean isBorrowed() {
        return isBorrowed;
    }
    public void setBorrowed(boolean borrowed) {
        isBorrowed = borrowed;
    }
    @Override
    public String toString() {
        return "图书信息：ISBN=" + isbn + "，书名=" + name + "，作者=" + author + "，状态=" + (isBorrowed ? "已借出" : "可借阅");
    }
}